//
//  SlecterManager.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/4/23.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit
protocol SlecterProcotol: class  {

    /// 选择数据回调
    ///
    /// - Parameter selecterStr: 回调的参数
    /// - Returns: void
    func selectData(selecter:AnyObject?) -> Void
}
class SlecterManager: NSObject {
    var  selectPickerView:SelectPickerView?
    static let manager = SlecterManager()
    
    func creatSlecterStyle(style:selectStyle ,title:String, selectStr:AnyObject?, dataArr:Array<Any> ,dataSource:SlecterProcotol) -> SelectPickerView {
        
        let selectPickerView = SelectPickerView(style:style, title: title,selectStr:selectStr,dataArr: dataArr, dataSource: dataSource)
        self.selectPickerView = selectPickerView
        return selectPickerView
    }
  
}
